package com.ctg.itrdc.sysmgr.portal.data.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

import com.ctg.itrdc.pasp.core.Entity;


@Table(name = "FUNC_MENU")
public class FuncMenu extends Entity<Long> {
	private static final long serialVersionUID = -2811347047325737314L;


	/**
	 * 菜单标识，主键
	 */
	@Id
	@Column(name = "MENU_ID")
	private Long menuId;

	/**
	 * 菜单名称
	 */
	@Column(name = "MENU_NAME")
	private String menuName;

	/**
	 * 上级菜单标识
	 */
	@Column(name = "PAR_MENU_ID")
	private Long parMenuId;

	/**
	 * 创建人
	 */
	@Column(name = "CREATE_STAFF")
	private Long createStaff;

	/**
	 * 修改时间
	 */
	@Column(name = "UPDATE_DATE")
	private Timestamp updateDate;

	/**
	 * 菜单URL链接地址
	 */
	@Column(name = "URL_ADDR")
	private String urlAddr;

	/**
	 * 状态时间
	 */
	@Column(name = "STATUS_DATE")
	private Timestamp statusDate;

	/**
	 * 菜单项级别(从0开始)
	 */
	@Column(name = "MENU_LEVEL")
	private Integer menuLevel;

	/**
	 * 租户标识。
	 */
	@Column(name = "TENANT_ID")
	private Long tenantId;

	/**
	 * 公用管理区域标识,记录区域唯一标识
	 */
	@Column(name = "COMMON_REGION_ID")
	private Long commonRegionId;

	/**
	 * 菜单排序号（从0开始）
	 */
	@Column(name = "MENU_INDEX")
	private Integer menuIndex;

	/**
	 * 分片键1，固定值-1。
	 */
	@Column(name = "SHARD1")
	private Long shard1;

	/**
	 * 修改人
	 */
	@Column(name = "UPDATE_STAFF")
	private Long updateStaff;

	/**
	 * 分片键2，固定值-1。
	 */
	@Column(name = "SHARD2")
	private Long shard2;

	/**
	 * 菜单类型,LOVB,分为：非功能、功能
	 */
	@Column(name = "MENU_TYPE")
	private String menuType;

	/**
	 * 系统用户的归属系统
	 */
	@Column(name = "SYS_CODE")
	private String sysCode;

	/**
	 * 菜单状态
	 */
	@Column(name = "STATUS_CD")
	private String statusCd;

	/**
	 * 对应模块标识，菜单类型为“非功能”型时，为0
	 */
	@Column(name = "MOD_ID")
	private Integer modId;

	/**
	 * 创建时间
	 */
	@Column(name = "CREATE_DATE")
	private Timestamp createDate;

	/**
	 * 菜单描述
	 */
	@Column(name = "MENU_DESC")
	private String menuDesc;
	
	@Column(name = "OPEN_MODE")
	private String openMode;

	public String getOpenMode() {
		return openMode;
	}

	public void setOpenMode(String openMode) {
		this.openMode = openMode;
	}

	public void setMenuId(Long menuId){
		this.menuId = menuId;
	}

	public Long getMenuId(){
		return this.menuId;
	}

	public void setMenuName(String menuName){
		this.menuName = menuName;
	}

	public String getMenuName(){
		return this.menuName;
	}

	public void setParMenuId(Long parMenuId){
		this.parMenuId = parMenuId;
	}

	public Long getParMenuId(){
		return this.parMenuId;
	}

	public void setCreateStaff(Long createStaff){
		this.createStaff = createStaff;
	}

	public Long getCreateStaff(){
		return this.createStaff;
	}

	public void setUpdateDate(Timestamp updateDate){
		this.updateDate = updateDate;
	}

	public Timestamp getUpdateDate(){
		return this.updateDate;
	}

	public void setUrlAddr(String urlAddr){
		this.urlAddr = urlAddr;
	}

	public String getUrlAddr(){
		return this.urlAddr;
	}

	public void setStatusDate(Timestamp statusDate){
		this.statusDate = statusDate;
	}

	public Timestamp getStatusDate(){
		return this.statusDate;
	}

	public void setMenuLevel(Integer menuLevel){
		this.menuLevel = menuLevel;
	}

	public Integer getMenuLevel(){
		return this.menuLevel;
	}

	public void setTenantId(Long tenantId){
		this.tenantId = tenantId;
	}

	public Long getTenantId(){
		return this.tenantId;
	}

	public void setCommonRegionId(Long commonRegionId){
		this.commonRegionId = commonRegionId;
	}

	public Long getCommonRegionId(){
		return this.commonRegionId;
	}

	public void setMenuIndex(Integer menuIndex){
		this.menuIndex = menuIndex;
	}

	public Integer getMenuIndex(){
		return this.menuIndex;
	}

	public void setShard1(Long shard1){
		this.shard1 = shard1;
	}

	public Long getShard1(){
		return this.shard1;
	}

	public void setUpdateStaff(Long updateStaff){
		this.updateStaff = updateStaff;
	}

	public Long getUpdateStaff(){
		return this.updateStaff;
	}

	public void setShard2(Long shard2){
		this.shard2 = shard2;
	}

	public Long getShard2(){
		return this.shard2;
	}

	public void setMenuType(String menuType){
		this.menuType = menuType;
	}

	public String getMenuType(){
		return this.menuType;
	}

	public void setSysCode(String sysCode){
		this.sysCode = sysCode;
	}

	public String getSysCode(){
		return this.sysCode;
	}

	public void setStatusCd(String statusCd){
		this.statusCd = statusCd;
	}

	public String getStatusCd(){
		return this.statusCd;
	}

	public void setModId(Integer modId){
		this.modId = modId;
	}

	public Integer getModId(){
		return this.modId;
	}

	public void setCreateDate(Timestamp createDate){
		this.createDate = createDate;
	}

	public Timestamp getCreateDate(){
		return this.createDate;
	}

	public void setMenuDesc(String menuDesc){
		this.menuDesc = menuDesc;
	}

	public String getMenuDesc(){
		return this.menuDesc;
	}

	@Override
	public Long getId() {
		return menuId;
	}
	
	@Override
	public void setId(Long id) {
		this.menuId = id;
	}
	
	public FuncMenu() {
		super();
    }
}
